package com.p2p.base.redis;

import java.util.Collection;
import java.util.concurrent.TimeUnit;

public interface RedisClient {
	
	public void add(String key,Object value);
	
	public void add(String key,Object value,long timeout,TimeUnit unit);
	
	public Object getValue(String key);
	
	public void delete(String key);
	
	public void delete(Collection<String> keys);
	
	public Boolean exists(String key);
	 
	public boolean setIfAbsent(String key,Object value,long timeout,TimeUnit unit);
	 
}
